﻿using MgSoft.K3Cloud.WebApi.Common.Dto.Bd;
using MgSoft.K3Cloud.WebApi.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.K3Cloud.WebApi.Common.Api.Bd
{
    /// <summary>
    /// 
    /// </summary>
    public class Bd_UnitApi : BaseApi, IBd_UnitApi
    {
        /// <summary>
        /// 
        /// </summary>
        protected override string formId => "BD_UNIT";
        /// <summary>
        /// 
        /// </summary>
        /// <param name="apiServerInfo"></param>
        public Bd_UnitApi(ApiServerInfo apiServerInfo) : base(apiServerInfo)
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serverUrl"></param>
        /// <param name="dbid"></param>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <param name="lcid"></param>
        public Bd_UnitApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="bd_UnitSaveInputDto"></param>
        /// <returns></returns>
        public List<SaveOutPutDto> Save(Bd_UnitSaveInputDto bd_UnitSaveInputDto)
        {
            return base.Save(new SaveInputDto()
            {
                Model = bd_UnitSaveInputDto
            });
        }

    }
}
